package icu.qx.pbs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import icu.qx.pbs.mapper.PbsProuteProcedureMapper;
import icu.qx.pbs.domain.PbsProuteProcedure;
import icu.qx.pbs.service.IPbsProuteProcedureService;

/**
 * 工艺路线工序Service业务层处理
 *
 * @author yong
 * @date 2024-06-15
 */
@Service
public class PbsProuteProcedureServiceImpl implements IPbsProuteProcedureService {
    @Autowired
    private PbsProuteProcedureMapper pbsProuteProcedureMapper;

    /**
     * 查询工艺路线工序列表
     *
     * @param pbsProuteProcedure 工艺路线工序
     * @return 工艺路线工序
     */
    @Override
    public List<PbsProuteProcedure> selectPbsProuteProcedureList(PbsProuteProcedure pbsProuteProcedure) {
        return pbsProuteProcedureMapper.selectPbsProuteProcedureList(pbsProuteProcedure);
    }

    /**
     * 新增工艺路线工序
     *
     * @return 结果
     */
    @Override
    public int insertPbsProuteProcedure(PbsProuteProcedure pbsProuteProcedure) {
        return pbsProuteProcedureMapper.insertPbsProuteProcedure(pbsProuteProcedure);
    }

    /**
     * 删除工艺路线工序信息
     *
     * @return 结果
     */
    @Override
    public int deletePbsProuteProcedureByPpProcedureCode(String ppProuteCode) {
        return pbsProuteProcedureMapper.deletePbsProuteProcedureByPpProuteCode(ppProuteCode);
    }

}
